Unicode: removed decode() function that used a bad cast.

* Removed goto LreturnError. Return ERROR_CHAR directly.