Fixed bug #775: char conversion does not handle alternative UTF-8