fix for truncate and invalid_char_action values

The values for the truncate and invalid_char_action are not posted as integers. This pull request converts those values to values accepted by the API. I'm not sure how to fix the documentation.