fixed bugs with unicode saving, put in a kludge for % in sql fields