Properly encode headers when sending an AR.

fixes #413
Merge branch 'master' of https://github.com/tonioo/modoboa
Avoid / duplication.