Escape "$" in labels, so preg_replace() doesn't remove it

I noticed that the "$" would get dropped from my labels, because of the preg_replace() action that was being called.  Escaping the character seems to solve the issue.
Merge pull request #33 from hsubu/patch-1

Escape "$" in labels, so preg_replace() doesn't remove it