URI encoding and filtering fixes.