dirty workaround for python unicode problems