Prevent invalid URI escapes from logging errors