Implemented UTF-8 decoding for comparison purpose