Moved submitComment to Endpoint.doPost where it should have been all
along. This solved the encoding issue.