engine,userportal,webadmin: Various code fixes

- Fixed various Coverity issues, including:
  - Several getBytes() missing encoding.
  - Some potential null pointer dereferences.

Change-Id: I759bfd3176b25731a5150ae690a9838e0ab63ce8
Signed-off-by: Alexander Wels <awels@redhat.com>