fix encoding for wp7