Fix encoding issue with attribute values and move variation data to tooltip Closes #5169