Updated a few lines to add ';charset=UTF-8' in Content-Type header