Non-intrusive encoding fixes for Erlang 17.0

This adds proper encoding hints for Erlang 17.0 (and R16) that enables lhttpc to be compiled.