Fixing URI trimming for SQL (3008236)