Fixed bug where both decoding and encoding functions were giving False returns for every input