Fix bug whereby length on a tied scalar that returned a UTF-8 value