Dumper: replace control characters in exception message with spaces
TestCase: added correct HTTP header when sending JSON [Closes #113]