Encode string from specified encoding to UTF-8 (#467)

This reffers to b_value_decode
Remove invalid byte sequence from expected result (#467)