ensure ' ', '=' and ':' are legal in key values