Fix encoding-related PEBKAC