Handle UTF-16 -> UTF-8 conversion error.

Resolve #233.
This should be merged after #237.