Text this: Characterization and correction of multipole field effect on electron beams from a high-brightness continuous-wave photocathode gun