adding files with encoding