add option to escape whitespace in attribute values