add content type to assets
svg is not a binary file
use UTF-8 encoding
fix a bug in errors recovery
add a check on the theme id (theme id should not be the active theme)