Convert strings to unicode before passing them to writer