wrap tags in quotes only when needed