Fixed problem with header name encoding in tags and groups