fixup! Remove invalid characters when testing new-style keys