Remove unnecessary characters on export