Added decodeFunction for Unicode