[Android] Naming refine for packaging tool

First, the new w3c manifest spec requires accepting any string to be application name.
However in previous make_apk process, they were treated as invalid input.
Second, in the past time, this part of logic is always buggy and
each sub process is validating and modifying the name passed by.
It's a good time to consolidate all these codes and validate the name at beginning,
to produce all necessary strings (transferred from the input name)
for all purposes during the make apk process.
This will replace all occurrences of '@', not just the first one. Is it what you want? If so, you can replace all these checks and calls with `app_name = app_name.replace('@', '_').replace('?', '_')`.