convert keys to string before lowercasing