Moved wif encoding to encoding module