bug 932: changed encoding function for subject