Better handling of dirty std* when parsing powershell xml