More robust for empty strings in case of LaTeX::Encode usage