ref lines and indentation
add mb_set_encoding
added handling for zero dominators, utf8 mb set