Bug 5859: Allow user to set encoding for import