Final Version

1. Added support for encoding at utf-8
2. Added logic to eliminate extra <html><head> etc added due to casting a BeautifulSoup