Fix null-termination of internal FEN