Profile#to_rpc: Fixed formatting of cookies

[Close #49]