Tab to space conversion

See commit messages.
Oh, I see now the custom implementation. Is that necessary? The default should go to the platform one...