workaround bug in gmime + support char devices