Work around pymongo URI issues.