Added force_encoding to display contents of stdout correctly on screen
Added force_encoding to display contents of stdout correctly on screen

Added force_encoding to display contents of stdout to pass them to codemirror so it can be correctly on screen to fix the following error:
[----] F, [2017-04-03T11:48:28.706445 #7517:50b9460] FATAL -- : Error caught: [ActionView::Template::Error] incompatible character encodings: UTF-8 and ASCII-8BIT

https://bugzilla.redhat.com/show_bug.cgi?id=1437906

ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic