Use the bufio package to simplify the RLE decoder