A Simple and Effective Unified Encoder for Document-Level Machine Translation