Esters are not very reactive. That is why I suggested that somehow it needed to be converted to an Acyl chloride. The NH4+ counter ion could act as an Acid catalyst for the reaction, and the Cl- could possibly attack the Ester to form an Acid halide. This is what I think occurs, but from everything I have learned, the Chloride anion is not nucleophilic enough to attack an Ester due to its low reactivity.