AddDocument feature

Additionally, fix bug with unicode filenames in processing