[U-Boot] [PATCH v2 5/8] test/py: Encode/decode strings for stdio