Remove default case from "settings"

- The default settings value of '" "' for 'opts' causes issues.
  Remove this as it's not necessary.
Pretty print exceptions

- Exceptions are displayed using 'error_message' calls, but the output
  value is raw and not encoded correctly. Fix this.