fixed small incorrect error message transmitted to client in case of invalid file name