use decodeAsCString instead decode