@Test
public void escapes_unmappable_characters_for_the_current_charset() {

    assertThat(escapeSpecialChars("åäö", Charset.forName("ISO-8859-1")), is("åäö"));
    assertThat(escapeSpecialChars("åäö", Charset.forName("US-ASCII")), is("\\u00e5\\u00e4\\u00f6"));
}