fixed exception on non-string accept-encoding