Fix bug in Razor issue 294.

Hyphen is treated specially in a regex and needs escaping.