Allow all encoding flags in inplace configurations regardless to '-r' flag.

Also allow use '-r' together with '-e'. Added test.