Make maildir protocol able to deal with path contains special characters like "[", "]", and whitespace

Sup had a issue that will treat maildir path with special characters as invalid. Those characters are not acceptable in URI, but valid in file path such as "[Gmail]/.All Mails". Here's a small patch to solve that issue.