Show error message for asset pipeline errors

The HTML selector works with both Rails built-in errors and Better Errors.
Keep the original content encoding when saving assets

This fixes encoding errors with generating binary assets.

Using `image_path` in an asset referenced by tests causes the image to
be included in the offline assets.