my own encoding