Move and fix cleanPath helper method (fixes #812)

encodeURIComponent doesn't encode single quotes, so this amends the
cleanPath function with a manual replacing of single quotes.
Update changelog
Update version
Update HEAD release