Prevent double escapes on attributes, closes #3.