Fix #fromExtension, closes #349