[TargetEnvironmentHeaderSpec] Add a spec to ensure special characters in build config are sanitized

Spec for changes introduced in https://github.com/CocoaPods/CocoaPods/pull/2532
[CHANGELOG] Add changlog entry for sanitization of special characters in build configs in target environment header

CHANGELOG entry for https://github.com/CocoaPods/CocoaPods/pull/2532.