public function base64Encode($webSafe = false)
    {
        $this->val(base64_encode($this->val()));

        if ($webSafe) {
            $this->replace('+', '-')->replace('/', '_');
        }

        return $this;
    }