Verify SSL certificate, improve valid methods check
Fix bug in replace-tags and replace-stations causing appending instead of replacing