Return 400 for invalid URI encodings on assets

#2431 

Catch and log the exception instead of letting it propagate and cause an error.