add main file
Replace decodeURIComponent to encode