Hi, 
It seems you have moved the method call outside of another method call. Can you explain how it fixes the compatibility with wide character? Did you want to use 'encode' instead?