Text this: Structural dynamics of melting and glass formation in a two-dimensional hybrid perovskite