don't crash, if the given filename doesn't contain a dot e.g. 'test123'