Adding optional parameter to set encoding, if null the copy will be binary. Defaults to utf-8