resolving runtime exception with char-set decode