force string encoding for some variables