Support account codes with colons.

Our account codes were in the format of `account:123` which causes issues with python's `urljoin`. This properly escapes the account code before `urljoin`ing them.

We ultimately decided to switch our delimiter to `_`, but I had the patch already written.