convert tabs to spaces for rbm.h