Fix stringifying source so the regex actually works

The fix for #190 was broken because the regex comparison was never going to evaluate to true due to a type issue.  This fixes that.