Convert escaped characters properly. Fixes #35