fix "invalid byte sequence in UTF-8", respond to http format only