cleanup url bits.