fix message when removing whitespace from uri