Exception handling is not necessary here at all, it's better to use decode() method from above.