Decoding & Encoding bencoded data for Laravel 4