Disable Smart Punctuation
I believe smart punctuation is a new iOS 11 feature. Unfortunately it seems to be enabled by default, which if you use your iOS device for markdown, YAML, code, etc. you will need to disable the feature straight away under Settings > General > Keyboards:
2017-09-03