def bytes_to_string(raw):
ret = bytes()<EOL>for byte in raw:<EOL><INDENT>if byte == <NUM_LIT>:<EOL><INDENT>return ret.decode("<STR_LIT:utf-8>")<EOL><DEDENT>ret += bytes([byte])<EOL><DEDENT>return ret.decode("<STR_LIT:utf-8>")<EOL>
Convert bytes to string.