Catching unsopportedEncoding exception.