Fix bugs in ws_string_raw()

The error variable has to be reset and we can get the length of the
string by calling the function with NULL parameters here.
Add missing NULL-checks
Fix ws_string_set_from_raw()
Remove utf8 flag