Fixed an issue where special characters wouldn't be allowed in keys of sub objects