fix non-ascii keys