Added new function encodeutf8