helpers for UTF8 encoding/decoding
cleanup: BUFFER_SIZE and GetRandomText()
implement RETR