Fixed a bug in the UTF conversions.