Add helpful error message in rule validation.
Merge pull request #11 from kevinburg/encoding_errors

Add helpful error message in rule validation.