Set output encoding to UTF-8 in Writer and CLI for JRuby.