server: Improve error message

Inform about the charset when non-UTF-8.