Properly use of encoded string