utf8 fixes for ajax requests