Better character encoding handling.