fixed escaping in kvlist parse