reapir bug with encoding header