JavaScript doesn't accept @-sign, currently using urlencode instead of htmlentities