updated following errors due to non-UTF-8 encoding