Adding a unit test to check string encoding

This adds a simple unit test to see if encoding is preserved
.
@emanuelez