Solves encoding errors