fixed bugs with escaped characters in attribute values