Fixes Error messages to be easily converted to json