added missing `-encodeNull` method to interface
dropped unnecessary passing of the parameter to `-encodeNull`