utils/web.py: Add some 'try' statements to make decoding as error-permissive as possible.