fix category creation
allow storage of 4-byte utf8 characters
faster way of extracting declared encoding
store duration of fetching
use basic authentication if cookie is not found