better unicode handling
missing variable error
set cached response encoding correctly