encoding fix to (rand-word)