Fix handling of encoded and quoted flags and tags, remove most blocking versions of methods