Native encoding

Removed as3corelib dependency