convert: extension is a bytestring (fix #390)