Merging with stable. Adding support of system encoding and literal lua escape symbols

A#uthor: Dmitry Simonenko <pmwkaa@gmail.com>