Treat invalid key names (fix #106)