rmarshal: refactor code to avoid the warning

Avoid "Warning: variable 'Y' exported from ['case']".
rmarshal: add ability to parse strings with special encoding

To be honest, I have no idea what this new encoding value means.
It doesn't occur always, and I couldn't figure out the case when
it does.
Release v0.0.2