There is no issue with Apex in this case. I just checked on 4.1.1 and it works fine.
You possibly have
a. An extra space somewhere in the URL
b. Are missing a dot
c. Oe have the wrong type of Action in Action When Button Clicked. It should be Redirect to URL