fix encoding for 1.9