fixed and optimized a method JIDUtil:decode()