fix encoding for define