Rewritten str_unarmor() to be much more forgiving on armored strings.