Support different encoding styles and force to something we can work with

See Unity's similar change. If you agree with that one, you probably will like this one too. (https://github.com/ThrowTheSwitch/Unity/pull/57)

@barneywilliams, @JSchaenzle, @sw17ch, @jvranish : would one of you be willing to double check this before we commit?