Use &#39; instead of &apos; to escape #\'. Fixes #12