removing stray span from all htmls and adding encoding