Fix conditions for warning about out-of-place `encoding/1` directives