getting around invalid Url characters