Remove unneeded add encoding attr call