Special characters getting inserted into tables