remove unicode and put str back in for json_errors