public function getStrategy($name)
    {
        $name = (string) $name;

        if (! isset($this->strategies[$name])) {
            throw new InvalidArgumentException(sprintf(
                'Unknown escaper strategy "%s".',
                $name
            ));
        }

        return $this->strategies[$name];
    }