fix tabs_to_space on consecutive tabs
Catch std::runtime_errors that can be thrown by regex_search

This handle the case where a regex matching gets too complex.