Remove debug code accidentally commited
Encoding shouldn't be necessary here
Sanitize extension