Add the ability to manually assign file extensions.
Update tests and docs accordingly.