Improved debug output
Added decode and encode emoji functions