Text this: Enhancing Security in DNP3 Communication for Smart Grids: A Segmented Neural Network Approach