unicode safety

unsure how necessary this is now, but its in the original, and is EASILY removed.