utf8 decode and encode for ajax