Don't splitext on inputdir; fixes encoding of directories like Sigur Ros - Takk... (which removed a period)