fix reading and output of attribute values with quoted values

fixes #2