Convert file/directory between encodings.