fixes #811 : Handling asset creation without ext

I think it would be clearer just to default to an empty string (which has the same effect as "txt") when there is no extension.