Fix missing file extension when none is given

Fixes an issue where exported WAV or OGG is exported without any file extension.