A Property Encoder for Graph Neural Networks