Indent & untabify

M-x mark-whole-buffer
M-x indent-region
M-x mark-whole-buffer
M-x untabify