set charset on return value