feature & test: #773 prevent empty/undefined new filename