fixing ascii json encodeing error