Properly (hopefully?) encoding URL before they get sanitized. See issue 1299. Please test, break & report.

git-svn-id: http://yourls.googlecode.com/svn/trunk@858 12232710-3e20-11de-b438-597f59cd7555