Switch from cURL to file_get_contents, less code

Merged the kinda unnecessary stuff with the URL-transformation into one line,
switched from cURL to file_get_contents, cURL was causing some weird bugs for me.

Tested on my projects, works all fine