some protection against encoded strings