Made filter thru shell string decoding fix linux-specific. Created test case for linux and osx.