Add file extension whitelist to go with file extension blacklist. Fix #1.