Addresses #934 for ScalarEncoder
Merge pull request #1270 from scottpurdy/validateModelInput

Addresses #934 for ScalarEncoder