Bugfix: When replacing path segments, use re-quote-replacement to escape any back-references in the replacement string.
Using a string -> string replacement avoids the need to quote the replacement.
Merge pull request #18 from ray1729/re-quote-string-replacement

Bugfix: When replacing path segments, use re-quote-replacement to escape...