Fix for issue #585. Can you believe it was all due to a json_encode without true to i think escape the values? Crazy.