Yeah, to be honest, i don't recommend using quotes in your data, whether they are encoded or not they cause more problems then they are worth, like you have found for validation. there really is not a good way to do this and have it validate properly.