Fixes an issue with allowed file extensions.
Fixes #312.