Added an option to read the url from a file
Added url escaping