Let $\pi$ be a free group of rank 2. The character variety of $SL_{2,k}$-representations of $\pi$ is always isomorphic to affine 3 space $\mathbb{A}^3_k$ for any ring $k$.
Let $A[\pi] = A[\pi]_k$ denote the coordinate ring of $SL_{2,k}\times SL_{2,k}$, which we identify with $Hom(\pi, SL_{2,k})$ by picking a basis of $\pi$. Thus
$$A[\pi] \cong k[\{a_i,b_i,c_i,d_i\}_{i=1,2}]/(a_id_i-b_ic_i-1)_{i=1,2}$$
Let $X_i$ be the matrix variable $[[a_i,b_i],[c_i,d_i]]$. I claim that if we let $GL_{2,k}$ act on $A[\pi]$ by simultaneous conjugation on matrices, then $A[\pi]^{GL_{2,k}}$ is a polynomial ring in 3 variables.
$\newcommand{\tr}{\operatorname{tr}}$
$\newcommand{\bZ}{\mathbb{Z}}$
This is treated in Brumfiel-Hilden's book "SL(2)-representations of finitely presented groups" (combine their Propositions 9.1(ii) and Proposition 3.5). Specifically 9.1(ii) says that for any ring $k$, the ring of invariants $A[\pi]^{GL_{2,k}}$ is isomorphic to a certain ring $TH[\pi]$ (a subalgebra generated by "traces"), and Proposition 3.5 says that $TH[\pi]$ is in fact a polynomial ring over $k$ in the variables $A = \tr(X_1)$, $B = \tr(X_2)$, and $C = \tr(X_1X_2)$.
However, there is an issue with their statement - they actually claim that $k[A,B,C] = TH[\pi] = A[\pi]^{GL_2(k)}$ (taking invariants by $GL_2(k)$ instead of $GL_{2,k}$). This cannot be true, since when $k$ is a finite field, $A[\pi]^{GL_2(k)}$ is the invariant ring of a 6-dimensional algebra by a finite group, which must also be 6-dimensional, whereas $k[A,B,C]$ is visibly 3-dimensional. However, this is the only issue in their exposition. If you replace all instances of $GL_2(k)$ by $GL_{2,k}$, then their proof is fine.
I recently encountered this error when I tried to use their results in a paper of mine. Here are two ways to address their gap:
When $k = \bZ$ or $k$ is an infinite field, $GL_2(k)$ is Zariski-dense in $GL_{2,k}$, and hence in these cases their argument essentially works as is. You can bootstrap from these cases to the general case as follows. Since you know the case for $k = \mathbb{Z}$, you have $\bZ[A,B,C] = A[\pi]_\bZ^{GL_{2,\bZ}}$, so it suffices to check that taking invariants commutes with base change to any ring $k$. For any ring $k$, the universal coefficients theorem (Jantzen, I Proposition 4.18) gives an exact sequence
$$0\longrightarrow A[\pi]_\bZ^{GL_{2,\bZ}}\otimes_\bZ k\longrightarrow A[\pi]_k^{GL_{2,k}}\longrightarrow Tor_1^\bZ(H^1(GL_{2,\bZ},A[\pi]_\bZ),k)\longrightarrow 0$$
Thus it suffices to show that $H^1(GL_{2,\bZ},A[\pi]_\bZ)$ is $\bZ$-flat (in fact it is 0, but we don't need this). For this, it suffices to check vanishing of the Tor group when $k = \mathbb{F}_p$ (for all $p$), and since $\overline{\mathbb{F}_p}$ is faithfully flat over $\mathbb{F}_p$, it suffices to check this when $k = \overline{\mathbb{F}_p}$, but since we are assuming Brumfiel-Hilden's result over infinite fields, the exact sequence above gives us this Tor vanishing for $k = \overline{\mathbb{F}_p}$, as desired.
Another approach is to put together pieces of their argument to make your own direct argument. Firstly, Brumfiel-Hilden's arguments for Proposition 3.5 are correct. Specifically, you can check that for any ring $k$, the map $k[x,y,z] \rightarrow A[\pi]^{GL_{2,k}}$ gives an isomorphism onto the subalgebra $T[\pi]\subset A[\pi]$ generated by traces $\tr(X_{i_1}X_{i_2}\cdots X_{i_r})$ where each $i_j\in\{1,2\}$ and $r\ge 1$ (injectivity is Prop 3.2, surjectivity is prop 1.7). The next piece you need is the correct statement of "The first fundamental theorem of invariant theory". Namely, you need to replace $GL_2(k)$-invariants in their Proposition 9.2 (first part) with $GL_{2,k}$-invariants. This is due to Donkin (Invariants of several matrices) when $k = \bZ$ or $k$ is an algebraically closed field, but again the same argument as above using the universal coefficient theorem extends this to all rings. This theorem says that if $A[2]$ denotes the polynomial ring on 8 variables representing two 2x2 matrices, then $A[2]^{GL_{2,k}}$ ($GL_2$ acting by simultaneous conjugation) is generated as a $k$-subalgebra by traces and determinants of arbitrary products of the universal matrices. Thus, to complete the argument it suffices to check that the surjective map $A[2]\rightarrow A[\pi]$ induces a surjection on $GL_{2,k}$-invariants (note the determinants map to $1\in A[\pi]$). For this one can use a piece of Brumfiel-Hilden's argument (specifically in $\S9$, p97-98, "surjectivity of $\rho_n$"), which is correct and holds over arbitrary rings $k$.