Apply UTF-8 marshaling to return values and removed extra wrapping layer