This patch adds 'binary' parameter to ResourceManager 'string'
method. It allows to open text files in 'rU' mode which recognizes
all types of newlines, and binary files in 'rb' mode to prevent
their corruption.
Change-Id: I505070df187dfd910e68c555319e3ef92ce2c826
Closes-bug: #1496376