Fix bugs in ws_string_raw()
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.

waysome/waysome,waysome/waysome