Fix code style
Revert ImapStore URI change

Reverts changes introduced with commit 8194c20ffeb31e2da304f3436b95f7291d013392
Adds test to make sure usernames/passwords with special characters encode/decode properly.