fix issue 11350

Do not throw on bad UTF inside of a C callback
Merge pull request #1842 from blackwhale/issue-11350

Fix issue 11350 ibphobos2 regex match segfaults when a rare HTTP header is received