allow to remove data without copying to another buffer
Added support for conversion from UTF-8 to wchar_t under Linux