Hasimoto frames and the Gibbs measure of the periodic nonlinear Schrödinger equation