recode functions keys in non UTF-8 env bnc #865597