Fix ResourceStream formatting.