Better sanitizing of message for filename in local mode

If you were making a QR of a URL, the sanitizing was modifying the
URL