Reduce visibility of all encoding methods to protected.