Deal with non-ASCII secret keys