Adding encode for utf 16