latex encoding and removing n/a