Add validation for whitespace characters.

This is designed to address #1109 by validation that a filename contains more than a minimum number of non-whitespace characters.