fix string size

should have used JSStringGetMaximumUTF8CStringSize here