UTF-8 internal encoding fix