Ensure empty strings have correct EOF state.