sql: properly translate string encoding and length

between datashape and sqlalchemy