Mach backend encoding fix