Passing to mochiweb:encode/1 a valid UTF-8 string (not latin1).