Preparation of carboxylic acid esters by modifying the acid moiety of the ester, such modification not being an introduction of an ester group by introduction of functional groups containing oxygen only in singly bound form