#791: Validate for unicode string in 'load_logic.php'

Resolves #791.