Directly write to MutableBuffer in substring (#1423)