Universal Encoder

You might find this post interesting: