correctly encode From, Reply-to and To headers