Fix basic auth for passwords that contain colons

This broke with #338