More issues with encoding fixed.
Fix more encoding errors. Remove useless error checks (let it throw exceptions instead).