std: Move sys::log_str to repr::repr_to_str. Further work on #2240.
auto merge of #9937 : brson/rust/log_str, r=alexcrichton