Fixes issue #998.

Fixes multiple issues with the way PR #997 was implemented. 
@TShapinsky in a fragment, you can call `getString()` directly to decode a string resource into a string.