Merge pull request #20 from fayvel/deprecated

Replace deprecated functionality with new ones
Decode bytes buffer from core as UTF-8