Correctly replace all tabs with spaces.

Looks like my global flag for the tab replacement was done incorrectly. This commit fixes that.