Minimizing the Energy Spread Within a Single Bunch by Shaping its Charge Distribution