Trying to escape # will prove difficult I think and cause more pain than anything (# should be quoted when not already escaped, except in single-quotes where nothing can be escaped, but single-quotes can be themselves escaped or appear in double-quotes, etc). I think we should just re-implement a simple quoted strings parser, it's not that much work.
Let's leave this for another PR though.