UTF-7 support is backported from #106