Attempt to escape non-ASCII symbols in regular expressions

Ref. #6.

This won’t work if the regular expression was already built using escape sequences. The special handling of regular expressions will likely be removed.