Ensure that JSON representation of error dictionaries use string keys.