Fix tag encoding in urls, added thumbnails to file list and fix avatar upload bug