importepd: some sanity checking for the FEN string to prevent crashing with egregiously malformed FENs