Use proper return value for `get_wch`