unicode to mtp coding and scaling to 1000units script