Modified script so it doesn't fail because of page encoding error