Fixed the function so that both the property names and data in them are unescaped.