Verify supported content type, don't interfere with (for example) JSON responses

This ensures matching/replacing is only done in strings, and not when you (for example) return an array/JSON data.