Fix code coverage by setting project source encoding

Signed-off-by: Chris Aniszczyk <zx@twitter.com>
fix bug where Encoder.setMaxHeaderSize expires the wrong number of entries