[bug]preserve encoding should not remove nonbreak spaces, [feature] allow encoding type to be set