run_length_encoding_buggy