Moved license text to a constant. 

Use `utf8_encode` before sending copyright character to json_encode.
Also moved the license attribution to a constant.