use user specified encoding string