change sending ajax header string into json to correctly retain utf8