Handle special characters in the incoming referer.
Merge pull request #113 from kevingy/master

Handle special characters in the incoming referer.