Preparation of esters via Fischer esterification