added unicode (en/de)coding