Improved openbabel conversion.