Changed return value of shoporder.encode()