fixed errors with uri sanitization