A normal form for beam and non-local nonlinear Schrödinger equations